<?php
declare (strict_types = 1);

namespace app\mini\controller\admin;

use suframe\thinkAdmin\traits\AppSetNav;
use think\facade\View;

abstract class Base extends \suframe\thinkAdmin\controller\Base
{
    use AppSetNav;
    protected $urlPre = '/mini/admin/';

    /**
     *
     */
    protected function setViewPath()
    {
        if (!$this->request->isAjax()) {
            View::config(['view_path' => __DIR__ . DIRECTORY_SEPARATOR . '_view' . DIRECTORY_SEPARATOR]);
        }
    }
}